package cn.seecoder.courselearning.enums;

import lombok.Getter;

@Getter
public enum HttpStatus {
    COMMON_OK("ok", 200, 2001),

    USER_LOGIN_CODE_ERROR("code error ", 200, 6001),
    USER_LOGIN_USERNAME_ERROR("empty user", 200, 6002),
    USER_REGISTER_USERNAME_REPEAT("repeat username", 200, 6003),
    USER_MONEY_NOT_ENOUGH("don't have enough money", 200, 6004);


    private final String description;

    private final int httpStatus;

    private final int code;

    HttpStatus(String description, int httpStatus, int code) {
        this.description = description;
        this.httpStatus = httpStatus;
        this.code = code;
    }
}
